//
//  XHAVPlayerCell.h
//  testApp
//
//  Created by ColdMountain on 2016/12/4.
//  Copyright © 2016年 ColdMountain. All rights reserved.
//

#import <UIKit/UIKit.h>

@class XHAVPlayerCell;

typedef void(^AVPlayerBlock)(NSString*string);

static NSString * const XHAVPlayerCellIdentifier = @"XHAVPlayerCellIdentifier";

@protocol XHAVPlayerCellDelegate <NSObject>

- (void)cell:(XHAVPlayerCell*)cell runAction:(id)sender;

- (void)cell:(XHAVPlayerCell*)cell downAction:(id)sender;

- (void)cell:(XHAVPlayerCell*)cell cancelAction:(id)sender;

@end

@interface XHAVPlayerCell : UITableViewCell
@property (assign, nonatomic) id<XHAVPlayerCellDelegate>delegate;
@property (weak, nonatomic) IBOutlet UIButton *ui_runButton;
@property (weak, nonatomic) IBOutlet UIButton *ui;
@property (weak, nonatomic) IBOutlet UIImageView *ui_bgImage;
@property (weak, nonatomic) IBOutlet UILabel *ui_title;
@property (weak, nonatomic) IBOutlet UILabel *ui_MB;
@property (weak, nonatomic) IBOutlet UIProgressView *ui_progressView;
@property (weak, nonatomic) IBOutlet UIButton *ui_cancel;
@property (assign, nonatomic) void(^testString)(NSString *string);
@property (assign, nonatomic) AVPlayerBlock name;
- (void)avPlayerBlock:(AVPlayerBlock)name;

@end
